Mega Code Archive

Categories
1) Android
2) ASP.Net
3) ASP.Net Tutorial
4) C
5) C Tutorial
6) C#
7) C# Book
8) C# by API
9) C# Tutorial
10) C++
11) C++ Tutorial
12) Delphi
13) Flash ActionScript
14) Flex
15) Java
16) Java Book
17) Java by API
18) Java Tutorial
19) JavaScript DHTML
20) JavaScript Reference
21) JavaScript Tutorial
22) MSOfficeExcel 2007 Tutorial
23) MSOfficePowerPoint 2007 Tutorial
24) MSOfficeWord 2007 Tutorial
25) MSSQL
26) MSSQL Tutorial
27) MySQL
28) MySQL Tutorial
29) Oracle PLSQL
30) Oracle PLSQL Tutorial
31) Perl
32) Php
33) PostgreSQL
34) Python
35) Python Tutorial
36) Ruby
37) Silverlight
38) VB.Net
39) VB.Net by API
40) VB.Net Tutorial
41) Visual C++ .NET
42) VisualBasic Script
43) XML
44) XML Tutorial
 
Python
1) 2D Graphics
2) Application
3) Buildin Function
4) Class
5) Data Structure
6) Data Type
7) Database
8) Development
9) Dictionary
10) Event
11) Exception
12) File
13) Function
14) GUI Pmw
15) GUI Tk
16) Language Basics
17) List
18) Math
19) Network
20) String
21) System
22) Thread
23) Tuple
24) Utility
25) XML
String
1) A sentence is split up into a list of words
2) An index that is too large is replaced by the string size
3) An invariant of slice operations
4) Built-in function len() returns the length of a string
5) Compare two strings
6) Concantenate a string by
7) Concatenate Strings (glued together) with the + operator, and repeated with
8) Content tests
9) Convert int
10) Convert string
11) Degenerate slice indices
12) Demonstrates creating new strings with a for loop
13) Demonstrates string concatenation and repetition
14) Demonstrates the for loop with a string
15) Demonstrates the len() function and the in operator
16) Demonstrates the use of quotes in strings
17) Escape characters
18) Escape Codes
19) Find substring in a string
20) Finding a substring in a string
21) For Statements to list the string length
22) Formatting example
23) Get the length
24) Get the length of a string with escape characters inside
25) Indices may be negative numbers, to start counting from the right For example
26) Introducing ljust
27) Is a character inside a string
28) Join a list
29) Joining strings
30) Keeps (Back splash) literally
31) Match two string
32) Mix quotations
33) Negative Indices numbers
34) Output and get length of a string with special characters
35) Print out dashes in an easy way
36) Printing a List
37) Quotation inside a quotation
38) Replace all
39) Replace one
40) Searching from end of string
41) Searching strings for a substring
42) Special char output
43) Split a string by
44) Split and join
45) Splitting a String
46) Splitting strings
47) Step through String Items
48) String across several lines
49) String can be expressed in several ways
50) String concatenation Demo
51) String endswith
52) String escape sequences Demo
53) String indexing
54) String JOIN
55) String literals span multiple lines in several ways
56) String method
57) String repitition demo
58) String replace Demo
59) String replacement
60) String search
61) String Slice
62) String slicing
63) String splits by another string
64) String to list
65) String zfill() pads a numeric string on the left with zeros
66) Strings are printed without quotes, and a space is inserted inbetween
67) Strings can be expressed in several ways
68) Strings can be subscripted (indexed)
69) Strings translate
70) Stripping whitespace from a string
71) Table of powers using formatting codes
72) The use of a variable
73) The use of quotes in strings
74) Two ways to write a table of squares and cubes
75) Use r to define a string and return its length